#pragma once
#include "EventDispatcher.h"
#include "Allegro.h"
#include "Config.h"

class MouseInput :
	public EventDispatcher
{
	unsigned int lCounter;
	unsigned int rCounter;
	unsigned int oldB;
public:
	static Event MOUSE_UP;
	static Event MOUSE_DOWN;
	static Event MOUSE_CLICK;
	static Event RIGHT_MOUSE_UP;
	static Event RIGHT_MOUSE_DOWN;
	static Event RIGHT_MOUSE_CLICK;

	MouseInput(void);
	~MouseInput(void);

	int mouseX, mouseY;
	unsigned int clickDelay;

	void update(Event *e = NULL);
};
